<template>
  <div>
    <el-col  :style="{ width: munuWidth+'px' }" style="height:85vh;overflow-y: auto;overflow-x: hidden;">
      <el-menu
        :default-active="$route.name"
        class="el-menu-vertical-demo"
        :router="true"
        @open="handleOpen"
        @close="handleClose"
        :collapse="$store.state.isCollapse">
        <el-submenu index="1">
          <template slot="title">
            <i class="iconfont">&#xe60a;</i>
            <span>风机信息</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="myFans">归属风机</el-menu-item>
            <el-menu-item index="yjyqFans">已逾期风机</el-menu-item>
            <el-menu-item index="jjyqFans">将逾期风机</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="2">
          <template slot="title">
            <i class="iconfont">&#xe654;</i>
            <span>系统配置</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="2-1">开发中。。。</el-menu-item>
            <el-menu-item index="2-2">开发中。。。</el-menu-item>
            <el-menu-item index="2-2">开发中。。。</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-col>
  </div>

</template>

<script>

  export default {
    name: "navMenu",
    data() {
      return {

      }
    },
    mounted() {

    },
    methods: {
      handleOpen(key, keyPath) {

      },
      handleClose(key, keyPath) {

      }
    },

    computed: {
      defaultActive() {
        let router = this.$route.path;
        return router
      },
      munuWidth() {
        if (this.$store.state.isCollapse) {
          return 66
        } else {
          return 165
        }
      }

    },
    watch: {

    }
  }
</script>

<style scoped>

</style>
